home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 142
/
Volume 142 Oct 17 2011 - Damaged.iso
/
Games
/
operation-graduates.swf
/
scripts
/
frame_41
/
DoAction_20.as
< prev
next >
Wrap
Text File
|
2011-10-17
|
81KB
|
2,095 lines
function initSplash()
{
attachMovie("splash","splash",0);
splash.startButton.gotoAndStop("inactive");
splash.startButton.onRollOver = splash.startButton.onDragOver = function()
{
this.gotoAndStop("active");
playSound("sound.rollover");
};
splash.startButton.onRollOut = splash.startButton.onDragOut = function()
{
this.gotoAndStop("inactive");
};
splash.startButton.onPress = function()
{
playSound("sound.onpress");
};
splash.startButton.onRelease = function()
{
playSound("sound.onrelease");
myGameObject.displayBillboard();
initSelectionScreen();
music.intro.start(0,999);
};
}
function initGame(numbah)
{
doWhiteFlash();
levelNumber = 1;
createShadowContainer();
createHull(numbah);
initLevel();
createPowerupContainer();
createEnemyContainer();
createHUD();
createExplosionContainer();
createBackground();
createMissileContainer();
}
function initMusicLoops()
{
createEmptyMovieClip("music",musicDepth);
music.intro = new Sound(music);
music.intro.attachSound("music.intro");
music.boss = new Sound(music);
music.boss.attachSound("music.boss");
music.level = new Sound(music);
music.level.attachSound("music.level");
}
function initLevel()
{
theHull.alive = true;
theHull._x = Stage.width / 2;
theHull._y = 325;
playSound("sound.prepare");
music.level.start(0,999);
music.level.setVolume(60);
createBackground();
levelMap = eval("level" + levelNumber);
baddyKillCount = 0;
levelStartScore = theHull.score;
currentLevelRow = 0;
attachMovie("levelTitle","levelTitle",5001,{_x:Stage.width / 2,_y:Stage.height / 2});
levelTitle.gotoAndStop(levelNumber);
levelStartDelay = setInterval(function()
{
levelTitle.removeMovieClip();
levelParserCountdown = 18;
levelParsing = true;
clearInterval(levelStartDelay);
}
,1000);
}
function endGame()
{
var _loc1_ = _root;
var _loc2_ = this;
btnSubmit = "yes";
finalScore = theHull.score;
attachMovie("blackFlash","blackFlash",6002,{_alpha:0});
blackFlash.t = 0;
blackFlash.s = 0;
blackFlash.c = 100;
blackFlash.d = 30;
blackFlash.onEnterFrame = function()
{
var _loc1_ = _root;
var _loc2_ = this;
if(_loc2_.t == _loc2_.d)
{
for(wtf in _loc1_)
{
if(typeof _loc1_[wtf] == "movieclip" && _loc1_[wtf] != music && _loc1_[wtf] != theHull && _loc1_[wtf] != HUD && _loc1_[wtf] != blackFlash)
{
_loc1_[wtf].removeMovieClip();
}
}
theHull.onEnterFrame = null;
theHull._x = Stage.width / 2;
theHull._y = 325;
attachMovie("finalMoon","finalMoon",0,{y:-400});
finalMoon.attachMovie("bgTile","bgTile",0,{_y:400});
finalMoon.bgTile.gotoAndStop(7);
_loc2_.t = 0;
_loc2_.s = 100;
_loc2_.c = -100;
_loc2_.d = 60;
_loc2_.onEnterFrame = function()
{
var _loc1_ = _root;
this.t = this.t + 1;
if(this.t < this.d)
{
this._alpha = Math.linearTween(this.t,this.s,this.c,this.d);
finalMoon._y = Math.easeOutQuad(this.t,this.s,this.c,this.d) * -4;
}
if(this.t == 90)
{
this.removeMovieClip();
doWhiteFlash();
music.level.stop();
attachMovie("payoffWin","gameEnder",5000,{_x:300,_y:200});
_quality = "high";
gameEnder.playagain.gotoAndStop("inactive");
gameEnder.playagain.hitArea = gameEnder.playagain.ha;
gameEnder.playagain.onDragOver = gameEnder.playagain.onRollOver = function()
{
this.gotoAndPlay("active");
playSound("sound.rollover");
};
gameEnder.playagain.onDragOut = gameEnder.playagain.onRollOut = function()
{
this.gotoAndStop("inactive");
};
gameEnder.playagain.onPress = function()
{
playSound("sound.onpress");
};
gameEnder.playagain.onRelease = function()
{
var _loc1_ = _root;
playSound("sound.onrelease");
gameEnder.removeMovieClip();
for(wtf in _loc1_)
{
if(typeof _loc1_[wtf] == "movieclip" && _loc1_[wtf] != music)
{
_loc1_[wtf].removeMovieClip();
}
}
levelNumber = 1;
_quality = "low";
music.intro.start(0,999);
initSelectionScreen();
};
var scoreSubmitted;
if(_loc1_.login == "1")
{
var tLV = new LoadVars();
tLV.gameID = _loc1_.gameID;
tLV.scoreID = _loc1_.sc;
tLV.score = finalScore;
tLV.sm = fnMD5(_loc1_.gameID + _loc1_.sc + _loc1_.sn + finalScore);
tLV.onLoad = function()
{
getURL("top10.php?gameID=" + _root.gameID,"top10");
};
tLV.sendAndLoad("submitGameScoreProc.php",tLV,"POST");
scoreSubmitted = "Your score has been submitted.";
}
else
{
scoreSubmitted = "Please log in to submit the score";
}
gameEnder.winTxt.txt.text = scoreSubmitted;
trace(finalScore);
var _loc2_ = finalScore;
gameEnder.createEmptyMovieClip("score",1);
i = 6;
while(i >= 0)
{
var _loc3_ = gameEnder.score.attachMovie("number","digit" + i,i,{_x:i * -10});
_loc3_.gotoAndStop(Math.floor(_loc2_ / Math.pow(10,i)) + 1);
_loc2_ %= Math.pow(10,i);
i--;
}
gameEnder.score._x = 77;
gameEnder.score._y = -189.5;
myGameObject.callGameEventJS();
}
};
}
else if(_loc2_.t < _loc2_.d)
{
_loc2_.t = _loc2_.t + 1;
_loc2_._alpha = Math.linearTween(_loc2_.t,_loc2_.s,_loc2_.c,_loc2_.d);
}
};
}
function payoffAttachments()
{
var _loc1_ = _root;
payoffWin.playagain.gotoAndStop("inactive");
payoffWin.playagain.hitArea = payoffWin.playagain.ha;
payoffWin.playagain.onDragOver = payoffWin.playagain.onRollOver = function()
{
this.gotoAndPlay("active");
playSound("sound.rollover");
};
payoffWin.playagain.onDragOut = payoffWin.playagain.onRollOut = function()
{
this.gotoAndStop("inactive");
};
payoffWin.playagain.onPress = function()
{
playSound("sound.onpress");
};
payoffWin.playagain.onRelease = function()
{
var _loc1_ = _root;
playSound("sound.onrelease");
payoffWin.removeMovieClip();
for(wtf in _loc1_)
{
if(typeof _loc1_[wtf] == "movieclip" && _loc1_[wtf] != music)
{
_loc1_[wtf].removeMovieClip();
}
}
levelNumber = 1;
music.intro.start(0,999);
_quality = "low";
initSelectionScreen();
};
gameScore = theHull.score;
payoffWin.createEmptyMovieClip("gameScoreDigits",1);
i = 6;
while(i >= 0)
{
var _loc2_ = payoffWin.gameScoreDigits.attachMovie("number","digit" + i,i,{_x:i * -10});
_loc2_.gotoAndStop(Math.floor(gameScore / Math.pow(10,i)) + 1);
gameScore %= Math.pow(10,i);
i--;
}
payoffWin.gameScoreDigits._x = payoffWin.gameScoreDigits._width;
payoffWin.gameScoreDigits._y = -190;
}
function endLevel()
{
theHull.alive = false;
for(blow in enemyContainer)
{
enemyContainer[blow].myBuzz.stop();
explode(enemyContainer[blow]);
}
for(blow in misCon)
{
explode(misCon[blow]);
}
music.level.stop();
if(levelNumber == 6)
{
playSound("sound.codemodulator");
}
else
{
playSound("sound.goodjob." + (random(6) + 1));
}
music.intro.start(0,999);
levelParsing = false;
attachMovie("levelEnder","levelEnder",5001,{_x:Stage.width / 2,_y:125});
levelEnder.title.gotoAndStop(levelNumber);
levelEnder.cont.gotoAndStop("inactive");
levelEnder.cont.hitArea = levelEnder.cont.ha;
levelEnder.cont.onDragOver = levelEnder.cont.onRollOver = function()
{
this.gotoAndPlay("active");
playSound("sound.rollover");
};
levelEnder.cont.onDragOut = levelEnder.cont.onRollOut = function()
{
this.gotoAndStop("inactive");
};
levelEnder.cont.onPress = function()
{
playSound("sound.onpress");
};
levelEnder.cont.onRelease = function()
{
music.intro.stop();
stopAllSounds();
playSound("sound.onrelease");
levelNumber++;
doWhiteFlash();
initLevel();
};
levelScore = theHull.score - levelStartScore;
levelEnder.createEmptyMovieClip("levelScoreDigits",1);
i = levelScore.toString().length - 1;
while(i >= 0)
{
var _loc1_ = levelEnder.levelScoreDigits.attachMovie("bigNumber","digit" + i,i,{_x:i * -16});
_loc1_.gotoAndStop(Math.floor(levelScore / Math.pow(10,i)) + 1);
levelScore %= Math.pow(10,i);
i--;
}
levelEnder.levelScoreDigits._x = levelEnder.levelScoreDigits._width / 2 - 21;
levelEnder.levelScoreDigits._y = 112;
theHull.totalBaddyKills += baddyKillCount;
levelEnder.createEmptyMovieClip("baddyKillDigits",2);
i = baddyKillCount.toString().length - 1;
while(i >= 0)
{
_loc1_ = levelEnder.baddyKillDigits.attachMovie("bigNumber","digit" + i,i,{_x:i * -16});
_loc1_.gotoAndStop(Math.floor(baddyKillCount / Math.pow(10,i)) + 1);
baddyKillCount %= Math.pow(10,i);
i--;
}
levelEnder.baddyKillDigits._x = levelEnder.baddyKillDigits._width / 2 - 21;
levelEnder.baddyKillDigits._y = 32;
}
function gameOver()
{
var _loc1_ = _root;
btnSubmit = "yes";
finalScore = theHull.score;
for(buzzing in enemyContainer)
{
enemyContainer[buzzing].myBuzz.stop();
}
_quality = "high";
music.level.stop();
music.boss.stop();
levelParsing = false;
baddyKillCount += theHull.totalBaddyKills;
attachMovie("payoffLose","gameEnder",5001,{_x:Stage.width / 2,_y:Stage.height / 2});
gameEnder.playagain.gotoAndStop("inactive");
gameEnder.playagain.hitArea = gameEnder.playagain.ha;
gameEnder.playagain.onDragOver = gameEnder.playagain.onRollOver = function()
{
this.gotoAndPlay("active");
playSound("sound.rollover");
};
gameEnder.playagain.onDragOut = gameEnder.playagain.onRollOut = function()
{
this.gotoAndStop("inactive");
};
gameEnder.playagain.onPress = function()
{
playSound("sound.onpress");
};
gameEnder.playagain.onRelease = function()
{
var _loc1_ = _root;
playSound("sound.onrelease");
gameEnder.removeMovieClip();
for(wtf in _loc1_)
{
if(typeof _loc1_[wtf] == "movieclip" && _loc1_[wtf] != music)
{
_loc1_[wtf].removeMovieClip();
}
}
levelNumber = 1;
_quality = "low";
music.intro.start(0,999);
initSelectionScreen();
};
gameScore = theHull.score;
var scoreSubmitted;
if(_loc1_.login == "1")
{
var tLV = new LoadVars();
tLV.gameID = _loc1_.gameID;
tLV.scoreID = _loc1_.sc;
tLV.score = finalScore;
tLV.sm = fnMD5(_loc1_.gameID + _loc1_.sc + _loc1_.sn + finalScore);
tLV.onLoad = function()
{
getURL("top10.php?gameID=" + _root.gameID,"top10");
};
tLV.sendAndLoad("submitGameScoreProc.php",tLV,"POST");
scoreSubmitted = "Your score has been submitted.";
}
else
{
scoreSubmitted = "Please log in to submit the score";
}
gameEnder.createEmptyMovieClip("gameScoreDigits",1);
i = 6;
while(i >= 0)
{
var _loc2_ = gameEnder.gameScoreDigits.attachMovie("number","digit" + i,i,{_x:i * -10});
_loc2_.gotoAndStop(Math.floor(gameScore / Math.pow(10,i)) + 1);
gameScore %= Math.pow(10,i);
i--;
}
gameEnder.gameScoreDigits._x = gameEnder.gameScoreDigits._width;
gameEnder.gameScoreDigits._y = -190;
gameEnder.txt.text = scoreSubmitted;
theHull._visible = false;
theHull.move = null;
theHull.fire = null;
}
function doWhiteFlash()
{
var _loc1_ = this;
attachMovie("whiteFlash","whiteFlash",5002);
whiteFlash.t = 0;
whiteFlash.s = 100;
whiteFlash.c = -100;
whiteFlash.d = 5;
whiteFlash.onEnterFrame = function()
{
var _loc1_ = this;
if(_loc1_.t < _loc1_.d)
{
_loc1_.t = _loc1_.t + 1;
_loc1_._alpha = Math.easeInQuad(_loc1_.t,_loc1_.s,_loc1_.c,_loc1_.d);
if(_loc1_.t == _loc1_.d)
{
_loc1_.removeMovieClip();
}
}
};
}
function initInstructions()
{
createEmptyMovieClip("inst",100);
inst.attachMovie("frame","frame",0,{_x:Stage.width / 2,_y:Stage.height / 2});
inst.frame.gotoAndStop(1);
}
function gameExecute()
{
quarterize();
enemyExecute();
powerupExecute();
if(theHull.alive)
{
theHull.move();
}
if(!theHull.vulnerable && theHull.justSpawned)
{
if(theHull._visible)
{
theHull._visible = false;
}
else
{
theHull._visible = true;
}
}
bulletExecute();
theBG.scrollMe();
if(levelParsing)
{
parseLevelCounter();
}
}
function initSelectionScreen()
{
attachMovie("selectah","selectah",200,{_x:Stage.width / 2,_y:Stage.height / 2});
createBackground();
theBG.onEnterFrame = function()
{
this.scrollMe();
};
}
function createShadowContainer()
{
createEmptyMovieClip("shadows",shadowDepth);
shadowCount = 1;
}
function createBackground()
{
createEmptyMovieClip("theBG",backgroundDepth);
theBG.scrollSpeed = 6;
if(levelNumber > 3 && levelNumber < 7)
{
theBG.scrollSpeed = 5;
}
if(levelNumber == 7)
{
theBG.scrollSpeed = 9;
}
theBG.attachMovie("bgTile","bgTile1",1);
theBG.bgTile1.gotoAndStop(levelNumber);
theBG.attachMovie("bgTile","bgTile2",2,{_y:-400});
theBG.bgTile2.gotoAndStop(levelNumber);
theBG.scrollMe = bgScroll;
}
function bgScroll()
{
var _loc1_ = this;
_loc1_._y += _loc1_.scrollSpeed;
if(_loc1_._y >= 400)
{
_loc1_._y -= 400;
}
}
function createHull(numbah)
{
createEmptyMovieClip("theHull",hullDepth);
createEmptyMovieClip("pBullets",playerBulletDepth);
pBulletsCount = 0;
theHull.gunType = "defaultGun";
theHull.upgrades = new Array(0,0,0,0,0);
theHull.upgrades[numbah - 1] = 1;
theHull.attachMovie(theHull.upgrades[0] + "" + theHull.upgrades[1] + "" + theHull.upgrades[2] + "" + theHull.upgrades[3] + "" + theHull.upgrades[4],"ship",0);
theHull.originalType = numbah;
theHull.vulnerable = true;
theHull.lives = 4;
theHull.score = 0;
theHull.totalBaddyKills = 0;
theHull.alive = true;
theHull.die = playerDeath;
theHull._x = Stage.width / 2;
theHull._y = Stage.height - theHull._height;
theHull.dir = 0;
theHull.vel = new Vector(0,0);
theHull.speed = 0;
theHull.maxSpeed = 5;
theHull.pieceCount = 0;
theHull.onEnterFrame = gameExecute;
theHull.move = hullExecute;
theHull.fire = hullFire;
theHull.firing = false;
theHull.firingCountdown;
theHull.spot1 = new Vector();
theHull.spot2 = new Vector();
theHull.spot3 = new Vector();
theHull.spot4 = new Vector();
theHull.spot5 = new Vector();
theHull.justSpawned = false;
theHull.t;
theHull.s;
theHull.c;
theHull.d;
theHull.sX;
theHull.sY;
theHull.sS;
theHull.cX;
theHull.cY;
theHull.cS;
theHull.typeToAttach;
theHull.originX;
theHull.originY;
Key.addListener(theHull);
theHull.onKeyUp = hullKeyUp;
theHull.tryingToCheat = false;
theHull.cheat = 0;
theHull.cheatCountdown = 0;
}
function hullKeyUp()
{
var _loc1_ = Key.getCode();
if(_loc1_ == 75 && levelNumber < 7 && Key.isDown(83))
{
clearInterval(levelStartDelay);
endLevel();
}
if(_loc1_ == 49)
{
theHull.tryingToCheat = true;
theHull.cheat = 49;
theHull.cheatCountdown = 10;
}
else if(theHull.tryingToCheat)
{
if(_loc1_ < 54 && _loc1_ > 49)
{
if(_loc1_ == theHull.cheat + 1)
{
theHull.cheat = theHull.cheat + 1;
theHull.cheatCountdown = 10;
}
else
{
theHull.tryingToCheat = false;
theHull.cheat = 0;
}
if(theHull.cheat == 53)
{
bigFatCheater();
theHull.tryingToCheat = false;
theHull.cheatCountdown = 0;
}
}
if(_loc1_ == theHull.cheat + 1)
{
theHull.cheat = theHull.cheat + 1;
}
}
}
function hullExecute()
{
var _loc1_ = this;
_loc1_.vel.reset(0,0);
if(Key.isDown(38))
{
_loc1_.vel.y -= 1;
}
if(Key.isDown(40))
{
_loc1_.vel.y += 1;
}
if(Key.isDown(37))
{
_loc1_.vel.x -= 1;
}
if(Key.isDown(39))
{
_loc1_.vel.x += 1;
}
_loc1_.vel.setLength(7);
_loc1_._x += _loc1_.vel.x;
_loc1_._y += _loc1_.vel.y;
if(_loc1_._x < 0)
{
_loc1_._x = 0;
}
else if(_loc1_._x > 600)
{
_loc1_._x = 600;
}
if(_loc1_._y > 400)
{
_loc1_._y = 400;
}
if(_loc1_._y < 0)
{
_loc1_._y = 0;
}
if(!Key.isDown(38) && !Key.isDown(40) && !Key.isDown(37) && !Key.isDown(39))
{
_loc1_.speed *= 0.75;
if(_loc1_.speed < 1)
{
_loc1_.speed = 0;
}
}
if(Key.isDown(32) && !_loc1_.firing)
{
_loc1_.fire();
}
if(_loc1_.firing)
{
_loc1_.firingCountdown = _loc1_.firingCountdown - 1;
if(_loc1_.firingCountdown <= 0)
{
_loc1_.firing = false;
}
}
if(_loc1_.vulnerable && _loc1_._x - _loc1_._width / 2 < 300)
{
if(_loc1_._y - _loc1_._height / 2 < 200)
{
var _loc2_ = 0;
while(true)
{
if(_loc2_ < Q1enemies.length)
{
if(_loc1_.ship.ha.hitTest(Q1enemies[_loc2_]._x,Q1enemies[_loc2_]._y,false))
{
Q1enemies[_loc2_].collide();
_loc1_.die();
break;
}
continue;
}
}
}
if(_loc1_._y + _loc1_._height / 2 > 200)
{
_loc2_ = 0;
while(true)
{
if(_loc2_ < Q2enemies.length)
{
if(!_loc1_.ship.ha.hitTest(Q2enemies[_loc2_]._x,Q2enemies[_loc2_]._y,false))
{
continue;
}
Q2enemies[_loc2_].collide();
_loc1_.die();
}
else
{
addr334:
if(_loc1_.vulnerable && _loc1_._x + _loc1_._width / 2 > 300)
{
if(_loc1_._y - _loc1_._height / 2 < 200)
{
_loc2_ = 0;
while(true)
{
if(_loc2_ >= Q3enemies.length)
{
}
if(_loc1_.ship.ha.hitTest(Q3enemies[_loc2_]._x,Q3enemies[_loc2_]._y,false))
{
Q3enemies[_loc2_].collide();
_loc1_.die();
}
_loc2_ = _loc2_ + 1;
}
}
if(_loc1_._y + _loc1_._height / 2 > 200)
{
_loc2_ = 0;
while(true)
{
if(_loc2_ >= Q4enemies.length)
{
}
if(_loc1_.ship.ha.hitTest(Q4enemies[_loc2_]._x,Q4enemies[_loc2_]._y,false))
{
Q4enemies[_loc2_].collide();
_loc1_.die();
}
_loc2_ = _loc2_ + 1;
}
}
}
§§enumerate(eBullets);
while(true)
{
var _loc0_ = null;
if((_loc0_ = §§enumeration()) != null)
{
teb = §§enum_assign();
var _loc3_ = eBullets[teb];
if(!(_loc1_.vulnerable && _loc1_.ship.ha.hitTest(_loc3_._x,_loc3_._y,false)))
{
continue;
}
_loc3_.removeMovieClip();
_loc1_.die();
}
else if(theHull.tryingToCheat)
{
theHull.cheatCountdown--;
if(theHull.cheatCountdown <= 0)
{
theHull.tryingToCheat = false;
theHull.cheat = 0;
}
}
}
}
}
}
}
§§goto(addr334);
}
function playerDeath()
{
var _loc1_ = this;
_loc1_._visible = false;
theHull.alive = false;
explodeHull();
if(theHull.lives == 0)
{
playSound("sound.gameover." + (random(3) + 1));
attachMovie("blackFlash","blackFlash",6002,{_alpha:0});
blackFlash.t = 0;
blackFlash.s = 0;
blackFlash.c = 100;
blackFlash.d = 30;
blackFlash.onEnterFrame = function()
{
var _loc1_ = this;
_loc1_.t = _loc1_.t + 1;
if(_loc1_.t <= _loc1_.d)
{
_loc1_._alpha = Math.linearTween(_loc1_.t,_loc1_.s,_loc1_.c,_loc1_.d);
}
if(_loc1_.t == 60)
{
gameOver();
_loc1_.removeMovieClip();
}
};
}
else
{
respawnDelay = setInterval(respawnHull,500);
}
theHull.lives--;
createLives();
}
function explodeHull()
{
var _loc2_ = this;
playSound("sound.kidsplode",(theHull._x - 300) / 3);
var _loc1_ = explosionContainer.attachMovie("explosion3","explosion" + explosionCount++,explosionCount);
_loc1_._x = theHull._x;
_loc1_._y = theHull._y;
theHull._visible = false;
_loc1_.onEnterFrame = function()
{
var _loc1_ = this;
if(_loc1_._currentframe == _loc1_._totalframes)
{
_loc1_.removeMovieClip();
}
};
}
function respawnHull()
{
clearInterval(respawnDelay);
theHull.upgrades = new Array(0,0,0,0,0);
theHull.upgrades[theHull.originalType - 1] = 1;
theHull.attachMovie(theHull.upgrades[0] + "" + theHull.upgrades[1] + "" + theHull.upgrades[2] + "" + theHull.upgrades[3] + "" + theHull.upgrades[4],"ship",0);
theHull._visible = true;
theHull.alive = true;
theHull.vulnerable = false;
theHull.justSpawned = true;
becomeVulnerable = setInterval(function()
{
theHull.vulnerable = true;
theHull.justSpawned = false;
theHull._visible = true;
clearInterval(becomeVulnerable);
}
,1500);
theHull._x = Stage.width / 2;
theHull._y = Stage.height - theHull._height;
}
function quarterize()
{
enemyCount = -1;
Q1enemies = new Array();
Q2enemies = new Array();
Q3enemies = new Array();
Q4enemies = new Array();
for(te in enemyContainer)
{
enemyCount++;
var _loc1_ = enemyContainer[te];
if(_loc1_._x + _loc1_._width / 2 > 300 && _loc1_._x - _loc1_._width / 2 < 300)
{
if(_loc1_._y < 200)
{
Q1enemies.push(_loc1_);
Q3enemies.push(_loc1_);
}
else
{
Q2enemies.push(_loc1_);
Q4enemies.push(_loc1_);
}
}
else if(_loc1_._x < 300)
{
if(_loc1_._y < 200)
{
Q1enemies.push(_loc1_);
}
else
{
Q2enemies.push(_loc1_);
}
}
else if(_loc1_._y < 200)
{
Q3enemies.push(_loc1_);
}
else
{
Q4enemies.push(_loc1_);
}
}
for(tm in misCon)
{
enemyCount++;
var _loc3_ = misCon[tm];
if(_loc3_._x < 300)
{
if(_loc3_._y < 200)
{
Q1enemies.push(_loc3_);
}
else
{
Q2enemies.push(_loc3_);
}
}
else if(_loc3_._y < 200)
{
Q3enemies.push(_loc3_);
}
else
{
Q4enemies.push(_loc3_);
}
}
Q1bullets = new Array();
Q2bullets = new Array();
Q3bullets = new Array();
Q4bullets = new Array();
for(tb in pBullets)
{
var _loc2_ = pBullets[tb];
if(_loc2_._x < 300)
{
if(_loc2_._y < 200)
{
Q1bullets.push(_loc2_);
}
else
{
Q2bullets.push(_loc2_);
}
}
else if(_loc2_._y < 200)
{
Q3bullets.push(_loc2_);
}
else
{
Q4bullets.push(_loc2_);
}
}
}
function distance(x1, y1, x2, y2)
{
return (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
}
function fnMD5(pString)
{
return fnBinaryToHex(fnMd5Proc(fnStringToBinary(pString),pString.length * 8));
}
function fnMd5Proc(x, len)
{
x[len >> 5] |= 128 << len % 32;
x[(len + 64 >>> 9 << 4) + 14] = len;
var a = 1732584193;
var _loc3_ = -271733879;
var _loc2_ = -1732584194;
var _loc1_ = 271733878;
var i = 0;
while(i < x.length)
{
var olda = a;
var oldb = _loc3_;
var oldc = _loc2_;
var oldd = _loc1_;
a = fnFF(a,_loc3_,_loc2_,_loc1_,x[i + 0],7,-680876936);
_loc1_ = fnFF(_loc1_,a,_loc3_,_loc2_,x[i + 1],12,-389564586);
_loc2_ = fnFF(_loc2_,_loc1_,a,_loc3_,x[i + 2],17,606105819);
_loc3_ = fnFF(_loc3_,_loc2_,_loc1_,a,x[i + 3],22,-1044525330);
a = fnFF(a,_loc3_,_loc2_,_loc1_,x[i + 4],7,-176418897);
_loc1_ = fnFF(_loc1_,a,_loc3_,_loc2_,x[i + 5],12,1200080426);
_loc2_ = fnFF(_loc2_,_loc1_,a,_loc3_,x[i + 6],17,-1473231341);
_loc3_ = fnFF(_loc3_,_loc2_,_loc1_,a,x[i + 7],22,-45705983);
a = fnFF(a,_loc3_,_loc2_,_loc1_,x[i + 8],7,1770035416);
_loc1_ = fnFF(_loc1_,a,_loc3_,_loc2_,x[i + 9],12,-1958414417);
_loc2_ = fnFF(_loc2_,_loc1_,a,_loc3_,x[i + 10],17,-42063);
_loc3_ = fnFF(_loc3_,_loc2_,_loc1_,a,x[i + 11],22,-1990404162);
a = fnFF(a,_loc3_,_loc2_,_loc1_,x[i + 12],7,1804603682);
_loc1_ = fnFF(_loc1_,a,_loc3_,_loc2_,x[i + 13],12,-40341101);
_loc2_ = fnFF(_loc2_,_loc1_,a,_loc3_,x[i + 14],17,-1502002290);
_loc3_ = fnFF(_loc3_,_loc2_,_loc1_,a,x[i + 15],22,1236535329);
a = fnGG(a,_loc3_,_loc2_,_loc1_,x[i + 1],5,-165796510);
_loc1_ = fnGG(_loc1_,a,_loc3_,_loc2_,x[i + 6],9,-1069501632);
_loc2_ = fnGG(_loc2_,_loc1_,a,_loc3_,x[i + 11],14,643717713);
_loc3_ = fnGG(_loc3_,_loc2_,_loc1_,a,x[i + 0],20,-373897302);
a = fnGG(a,_loc3_,_loc2_,_loc1_,x[i + 5],5,-701558691);
_loc1_ = fnGG(_loc1_,a,_loc3_,_loc2_,x[i + 10],9,38016083);
_loc2_ = fnGG(_loc2_,_loc1_,a,_loc3_,x[i + 15],14,-660478335);
_loc3_ = fnGG(_loc3_,_loc2_,_loc1_,a,x[i + 4],20,-405537848);
a = fnGG(a,_loc3_,_loc2_,_loc1_,x[i + 9],5,568446438);
_loc1_ = fnGG(_loc1_,a,_loc3_,_loc2_,x[i + 14],9,-1019803690);
_loc2_ = fnGG(_loc2_,_loc1_,a,_loc3_,x[i + 3],14,-187363961);
_loc3_ = fnGG(_loc3_,_loc2_,_loc1_,a,x[i + 8],20,1163531501);
a = fnGG(a,_loc3_,_loc2_,_loc1_,x[i + 13],5,-1444681467);
_loc1_ = fnGG(_loc1_,a,_loc3_,_loc2_,x[i + 2],9,-51403784);
_loc2_ = fnGG(_loc2_,_loc1_,a,_loc3_,x[i + 7],14,1735328473);
_loc3_ = fnGG(_loc3_,_loc2_,_loc1_,a,x[i + 12],20,-1926607734);
a = fnHH(a,_loc3_,_loc2_,_loc1_,x[i + 5],4,-378558);
_loc1_ = fnHH(_loc1_,a,_loc3_,_loc2_,x[i + 8],11,-2022574463);
_loc2_ = fnHH(_loc2_,_loc1_,a,_loc3_,x[i + 11],16,1839030562);
_loc3_ = fnHH(_loc3_,_loc2_,_loc1_,a,x[i + 14],23,-35309556);
a = fnHH(a,_loc3_,_loc2_,_loc1_,x[i + 1],4,-1530992060);
_loc1_ = fnHH(_loc1_,a,_loc3_,_loc2_,x[i + 4],11,1272893353);
_loc2_ = fnHH(_loc2_,_loc1_,a,_loc3_,x[i + 7],16,-155497632);
_loc3_ = fnHH(_loc3_,_loc2_,_loc1_,a,x[i + 10],23,-1094730640);
a = fnHH(a,_loc3_,_loc2_,_loc1_,x[i + 13],4,681279174);
_loc1_ = fnHH(_loc1_,a,_loc3_,_loc2_,x[i + 0],11,-358537222);
_loc2_ = fnHH(_loc2_,_loc1_,a,_loc3_,x[i + 3],16,-722521979);
_loc3_ = fnHH(_loc3_,_loc2_,_loc1_,a,x[i + 6],23,76029189);
a = fnHH(a,_loc3_,_loc2_,_loc1_,x[i + 9],4,-640364487);
_loc1_ = fnHH(_loc1_,a,_loc3_,_loc2_,x[i + 12],11,-421815835);
_loc2_ = fnHH(_loc2_,_loc1_,a,_loc3_,x[i + 15],16,530742520);
_loc3_ = fnHH(_loc3_,_loc2_,_loc1_,a,x[i + 2],23,-995338651);
a = fnII(a,_loc3_,_loc2_,_loc1_,x[i + 0],6,-198630844);
_loc1_ = fnII(_loc1_,a,_loc3_,_loc2_,x[i + 7],10,1126891415);
_loc2_ = fnII(_loc2_,_loc1_,a,_loc3_,x[i + 14],15,-1416354905);
_loc3_ = fnII(_loc3_,_loc2_,_loc1_,a,x[i + 5],21,-57434055);
a = fnII(a,_loc3_,_loc2_,_loc1_,x[i + 12],6,1700485571);
_loc1_ = fnII(_loc1_,a,_loc3_,_loc2_,x[i + 3],10,-1894986606);
_loc2_ = fnII(_loc2_,_loc1_,a,_loc3_,x[i + 10],15,-1051523);
_loc3_ = fnII(_loc3_,_loc2_,_loc1_,a,x[i + 1],21,-2054922799);
a = fnII(a,_loc3_,_loc2_,_loc1_,x[i + 8],6,1873313359);
_loc1_ = fnII(_loc1_,a,_loc3_,_loc2_,x[i + 15],10,-30611744);
_loc2_ = fnII(_loc2_,_loc1_,a,_loc3_,x[i + 6],15,-1560198380);
_loc3_ = fnII(_loc3_,_loc2_,_loc1_,a,x[i + 13],21,1309151649);
a = fnII(a,_loc3_,_loc2_,_loc1_,x[i + 4],6,-145523070);
_loc1_ = fnII(_loc1_,a,_loc3_,_loc2_,x[i + 11],10,-1120210379);
_loc2_ = fnII(_loc2_,_loc1_,a,_loc3_,x[i + 2],15,718787259);
_loc3_ = fnII(_loc3_,_loc2_,_loc1_,a,x[i + 9],21,-343485551);
a = fnMD5Add(a,olda);
_loc3_ = fnMD5Add(_loc3_,oldb);
_loc2_ = fnMD5Add(_loc2_,oldc);
_loc1_ = fnMD5Add(_loc1_,oldd);
i += 16;
}
return Array(a,_loc3_,_loc2_,_loc1_);
}
function fnCMN(q, a, b, x, s, t)
{
return fnMD5Add(fnShiftBitLeft(fnMD5Add(fnMD5Add(a,q),fnMD5Add(x,t)),s),b);
}
function fnFF(a, b, c, d, x, s, t)
{
var _loc1_ = b;
return fnCMN(_loc1_ & c | (~_loc1_) & d,a,_loc1_,x,s,t);
}
function fnGG(a, b, c, d, x, s, t)
{
return fnCMN(b & d | c & (~d),a,b,x,s,t);
}
function fnHH(a, b, c, d, x, s, t)
{
return fnCMN(b ^ c ^ d,a,b,x,s,t);
}
function fnII(a, b, c, d, x, s, t)
{
return fnCMN(c ^ (b | ~d),a,b,x,s,t);
}
function fnMD5Add(x, y)
{
var _loc1_ = (x & 65535) + (y & 65535);
var _loc2_ = (x >> 16) + (y >> 16) + (_loc1_ >> 16);
return _loc2_ << 16 | _loc1_ & 65535;
}
function fnShiftBitLeft(num, cnt)
{
return num << cnt | num >>> 32 - cnt;
}
function fnStringToBinary(str)
{
var _loc2_ = str;
var _loc3_ = Array();
var mask = 255;
var _loc1_ = 0;
while(_loc1_ < _loc2_.length * 8)
{
_loc3_[_loc1_ >> 5] |= (_loc2_.charCodeAt(_loc1_ / 8) & mask) << _loc1_ % 32;
_loc1_ += 8;
}
return _loc3_;
}
function fnBinaryToHex(binarray)
{
var _loc2_ = binarray;
var _loc3_ = "0123456789abcdef";
var str = "";
var _loc1_ = 0;
while(_loc1_ < _loc2_.length * 4)
{
str += _loc3_.charAt(_loc2_[_loc1_ >> 2] >> _loc1_ % 4 * 8 + 4 & 15) + _loc3_.charAt(_loc2_[_loc1_ >> 2] >> _loc1_ % 4 * 8 & 15);
_loc1_ = _loc1_ + 1;
}
return str;
}
function fnFlashEncrypt(pKey, pString)
{
var _loc3_ = pKey;
var tResultString = "";
var tOdd;
var _loc1_ = undefined;
if(_loc3_.charAt(0).charCodeAt(0) % 2 != 0)
{
tOdd = true;
_loc1_ = 0;
}
else
{
tOdd = false;
_loc1_ = _loc3_.length - 1;
}
var _loc2_ = 0;
while(_loc2_ < pString.length)
{
var tOrd = _loc3_.charAt(_loc1_).charCodeAt(0);
tResultString += String.fromCharCode(pString.charAt(_loc2_).charCodeAt(0) + tOrd);
if(tOdd)
{
_loc1_ = _loc1_ + 1;
if(_loc1_ == _loc3_.length)
{
_loc1_ = 0;
}
}
else
{
_loc1_ = _loc1_ - 1;
if(_loc1_ == -1)
{
_loc1_ = _loc3_.length - 1;
}
}
_loc2_ = _loc2_ + 1;
}
return escape(tResultString);
}
function fnFlashDecrypt(pKey, pString)
{
var _loc3_ = pKey;
pString = unescape(pString);
var tResultString = "";
var tOdd;
var _loc1_ = undefined;
if(_loc3_.charAt(0).charCodeAt(0) % 2 != 0)
{
tOdd = true;
_loc1_ = 0;
}
else
{
tOdd = false;
_loc1_ = _loc3_.length - 1;
}
var _loc2_ = 0;
while(_loc2_ < pString.length)
{
var tOrd = _loc3_.charAt(_loc1_).charCodeAt(0);
tResultString += String.fromCharCode(pString.charAt(_loc2_).charCodeAt(0) - tOrd);
if(tOdd)
{
_loc1_ = _loc1_ + 1;
if(_loc1_ == _loc3_.length)
{
_loc1_ = 0;
}
}
else
{
_loc1_ = _loc1_ - 1;
if(_loc1_ == -1)
{
_loc1_ = _loc3_.length - 1;
}
}
_loc2_ = _loc2_ + 1;
}
return tResultString;
}
Math.sinD = function(angle)
{
return Math.sin(angle * 0.017453292519943295);
};
Math.cosD = function(angle)
{
return Math.cos(angle * 0.017453292519943295);
};
Math.acosD = function(ratio)
{
return Math.acos(ratio) * 57.29577951308232;
};
Math.atan2D = function(ratio)
{
return Math.atan2(ratio) * 57.29577951308232;
};
_global.Vector = function(x, y)
{
this.x = x;
this.y = y;
};
Vector.prototype.toString = function()
{
var _loc2_ = Math.round(this.x * 1000) / 1000;
var _loc1_ = Math.round(this.y * 1000) / 1000;
return "[" + _loc2_ + ", " + _loc1_ + "]";
};
Vector.prototype.equals = function(v)
{
return this.x == v.x && this.y == v.y;
};
Vector.prototype.reset = function(x, y)
{
this.constructor(x,y);
};
Vector.prototype.getClone = function()
{
var _loc1_ = this;
return new _loc1_.constructor(_loc1_.x,_loc1_.y);
};
Vector.prototype.plus = function(v)
{
with(this)
{
x += v.x;
y += v.y;
}
};
Vector.prototype.plusNew = function(v)
{
with(this)
{
return new constructor(x + v.x,y + v.y);
}
};
Vector.prototype.minus = function(v)
{
with(this)
{
x -= v.x;
y -= v.y;
}
};
Vector.prototype.minusNew = function(v)
{
with(this)
{
return new constructor(x - v.x,y - v.y);
}
};
Vector.prototype.negate = function()
{
with(this)
{
x = - x;
y = - y;
}
};
Vector.prototype.negateNew = function(v)
{
with(this)
{
return new constructor(- x,- y);
}
};
Vector.prototype.scale = function(s)
{
with(this)
{
x *= s;
y *= s;
}
};
Vector.prototype.scaleNew = function(s)
{
with(this)
{
return new constructor(x * s,y * s);
}
};
Vector.prototype.getLength = function()
{
with(this)
{
return Math.sqrt(x * x + y * y);
}
};
Vector.prototype.setLength = function(len)
{
var _loc1_ = this.getLength();
if(_loc1_)
{
this.scale(len / _loc1_);
}
};
Vector.prototype.getAngle = function()
{
return Math.atan2D(this.y,this.x);
};
Vector.prototype.setAngle = function(ang)
{
with(this)
{
var r = getLength();
x = r * Math.cosD(ang);
y = r * Math.sinD(ang);
}
};
Vector.prototype.rotate = function(ang)
{
with(Math)
{
var ca = cosD(ang);
var sa = sinD(ang);
}
with(this)
{
var rx = x * ca - y * sa;
var ry = x * sa + y * ca;
x = rx;
y = ry;
}
};
Vector.prototype.rotateNew = function(ang)
{
with(this)
{
var v = new constructor(x,y,z);
}
v.rotate(ang);
return v;
};
Vector.prototype.dot = function(v)
{
with(this)
{
return x * v.x + y * v.y;
}
};
Vector.prototype.getNormal = function()
{
with(this)
{
new constructor(- y,x);
}
};
Vector.prototype.isNormalTo = function(v)
{
return this.dot(v) == 0;
};
Vector.prototype.angleBetween = function(v)
{
var _loc2_ = this.dot(v);
var _loc1_ = _loc2_ / (this.getLength() * v.getLength());
return Math.acosD(_loc1_);
};
with(Vector.prototype)
{
addProperty("length",getLength,setLength);
addProperty("angle",getAngle,setAngle);
}
Math.linearTween = function(t, b, c, d)
{
return c * t / d + b;
};
Math.easeInQuad = function(t, b, c, d)
{
return c * (t /= d) * t + b;
};
Math.easeOutQuad = function(t, b, c, d)
{
return (- c) * (t /= d) * (t - 2) + b;
};
Math.easeInOutQuad = function(t, b, c, d)
{
var _loc1_ = t;
if((_loc1_ /= d / 2) < 1)
{
return c / 2 * _loc1_ * _loc1_ + b;
}
return (- c) / 2 * ((_loc1_ = _loc1_ - 1) * (_loc1_ - 2) - 1) + b;
};
Math.easeInCubic = function(t, b, c, d)
{
var _loc1_ = t;
return c * (_loc1_ /= d) * _loc1_ * _loc1_ + b;
};
Math.easeOutCubic = function(t, b, c, d)
{
var _loc1_ = t;
return c * ((_loc1_ = _loc1_ / d - 1) * _loc1_ * _loc1_ + 1) + b;
};
Math.easeInOutCubic = function(t, b, c, d)
{
var _loc1_ = t;
if((_loc1_ /= d / 2) < 1)
{
return c / 2 * _loc1_ * _loc1_ * _loc1_ + b;
}
return c / 2 * ((_loc1_ -= 2) * _loc1_ * _loc1_ + 2) + b;
};
Math.easeInQuart = function(t, b, c, d)
{
var _loc1_ = t;
return c * (_loc1_ /= d) * _loc1_ * _loc1_ * _loc1_ + b;
};
Math.easeOutQuart = function(t, b, c, d)
{
var _loc1_ = t;
return (- c) * ((_loc1_ = _loc1_ / d - 1) * _loc1_ * _loc1_ * _loc1_ - 1) + b;
};
Math.easeInOutQuart = function(t, b, c, d)
{
var _loc1_ = t;
if((_loc1_ /= d / 2) < 1)
{
return c / 2 * _loc1_ * _loc1_ * _loc1_ * _loc1_ + b;
}
return (- c) / 2 * ((_loc1_ -= 2) * _loc1_ * _loc1_ * _loc1_ - 2) + b;
};
Math.easeInQuint = function(t, b, c, d)
{
var _loc1_ = t;
return c * (_loc1_ /= d) * _loc1_ * _loc1_ * _loc1_ * _loc1_ + b;
};
Math.easeOutQuint = function(t, b, c, d)
{
var _loc1_ = t;
return c * ((_loc1_ = _loc1_ / d - 1) * _loc1_ * _loc1_ * _loc1_ * _loc1_ + 1) + b;
};
Math.easeInOutQuint = function(t, b, c, d)
{
var _loc1_ = t;
if((_loc1_ /= d / 2) < 1)
{
return c / 2 * _loc1_ * _loc1_ * _loc1_ * _loc1_ * _loc1_ + b;
}
return c / 2 * ((_loc1_ -= 2) * _loc1_ * _loc1_ * _loc1_ * _loc1_ + 2) + b;
};
Math.easeInSine = function(t, b, c, d)
{
return (- c) * Math.cos(t / d * 1.5707963267948966) + c + b;
};
Math.easeOutSine = function(t, b, c, d)
{
return c * Math.sin(t / d * 1.5707963267948966) + b;
};
Math.easeInOutSine = function(t, b, c, d)
{
return (- c) / 2 * (Math.cos(3.141592653589793 * t / d) - 1) + b;
};
Math.easeInExpo = function(t, b, c, d)
{
return t != 0 ? c * Math.pow(2,10 * (t / d - 1)) + b : b;
};
Math.easeOutExpo = function(t, b, c, d)
{
return t != d ? c * (- Math.pow(2,-10 * t / d) + 1) + b : b + c;
};
Math.easeInOutExpo = function(t, b, c, d)
{
var _loc1_ = t;
var _loc2_ = b;
var _loc3_ = c;
if(_loc1_ == 0)
{
return _loc2_;
}
if(_loc1_ == d)
{
return _loc2_ + _loc3_;
}
if((_loc1_ /= d / 2) < 1)
{
return _loc3_ / 2 * Math.pow(2,10 * (_loc1_ - 1)) + _loc2_;
}
return _loc3_ / 2 * (- Math.pow(2,-10 * (_loc1_ = _loc1_ - 1)) + 2) + _loc2_;
};
Math.easeInCirc = function(t, b, c, d)
{
return (- c) * (Math.sqrt(1 - (t /= d) * t) - 1) + b;
};
Math.easeOutCirc = function(t, b, c, d)
{
var _loc1_ = t;
return c * Math.sqrt(1 - (_loc1_ = _loc1_ / d - 1) * _loc1_) + b;
};
Math.easeInOutCirc = function(t, b, c, d)
{
var _loc1_ = t;
if((_loc1_ /= d / 2) < 1)
{
return (- c) / 2 * (Math.sqrt(1 - _loc1_ * _loc1_) - 1) + b;
}
return c / 2 * (Math.sqrt(1 - (_loc1_ -= 2) * _loc1_) + 1) + b;
};
Math.easeInElastic = function(t, b, c, d, a, p)
{
var _loc1_ = p;
var _loc2_ = t;
var _loc3_ = c;
if(_loc2_ == 0)
{
return b;
}
if((_loc2_ /= d) == 1)
{
return b + _loc3_;
}
if(!_loc1_)
{
_loc1_ = d * 0.3;
}
if(a < Math.abs(_loc3_))
{
a = _loc3_;
var s = _loc1_ / 4;
}
else
{
var s = _loc1_ / 6.283185307179586 * Math.asin(_loc3_ / a);
}
return - a * Math.pow(2,10 * (_loc2_ -= 1)) * Math.sin((_loc2_ * d - s) * 6.283185307179586 / _loc1_) + b;
};
Math.easeOutElastic = function(t, b, c, d, a, p)
{
var _loc1_ = c;
var _loc2_ = p;
var _loc3_ = t;
if(_loc3_ == 0)
{
return b;
}
if((_loc3_ /= d) == 1)
{
return b + _loc1_;
}
if(!_loc2_)
{
_loc2_ = d * 0.3;
}
if(a < Math.abs(_loc1_))
{
a = _loc1_;
var s = _loc2_ / 4;
}
else
{
var s = _loc2_ / 6.283185307179586 * Math.asin(_loc1_ / a);
}
return a * Math.pow(2,-10 * _loc3_) * Math.sin((_loc3_ * d - s) * 6.283185307179586 / _loc2_) + _loc1_ + b;
};
Math.easeInOutElastic = function(t, b, c, d, a, p)
{
var _loc1_ = t;
var _loc2_ = p;
var _loc3_ = c;
if(_loc1_ == 0)
{
return b;
}
if((_loc1_ /= d / 2) == 2)
{
return b + _loc3_;
}
if(!_loc2_)
{
_loc2_ = d * 0.44999999999999996;
}
if(a < Math.abs(_loc3_))
{
a = _loc3_;
var s = _loc2_ / 4;
}
else
{
var s = _loc2_ / 6.283185307179586 * Math.asin(_loc3_ / a);
}
if(_loc1_ < 1)
{
return -0.5 * (a * Math.pow(2,10 * (_loc1_ -= 1)) * Math.sin((_loc1_ * d - s) * 6.283185307179586 / _loc2_)) + b;
}
return a * Math.pow(2,-10 * (_loc1_ -= 1)) * Math.sin((_loc1_ * d - s) * 6.283185307179586 / _loc2_) * 0.5 + _loc3_ + b;
};
Math.easeInBack = function(t, b, c, d, s)
{
var _loc1_ = s;
var _loc2_ = t;
if(_loc1_ == undefined)
{
_loc1_ = 1.70158;
}
return c * (_loc2_ /= d) * _loc2_ * ((_loc1_ + 1) * _loc2_ - _loc1_) + b;
};
Math.easeOutBack = function(t, b, c, d, s)
{
var _loc1_ = t;
var _loc2_ = s;
if(_loc2_ == undefined)
{
_loc2_ = 1.70158;
}
return c * ((_loc1_ = _loc1_ / d - 1) * _loc1_ * ((_loc2_ + 1) * _loc1_ + _loc2_) + 1) + b;
};
Math.easeInOutBack = function(t, b, c, d, s)
{
var _loc1_ = t;
var _loc2_ = s;
if(_loc2_ == undefined)
{
_loc2_ = 1.70158;
}
if((_loc1_ /= d / 2) < 1)
{
return c / 2 * (_loc1_ * _loc1_ * (((_loc2_ *= 1.525) + 1) * _loc1_ - _loc2_)) + b;
}
return c / 2 * ((_loc1_ -= 2) * _loc1_ * (((_loc2_ *= 1.525) + 1) * _loc1_ + _loc2_) + 2) + b;
};
Math.easeInBounce = function(t, b, c, d)
{
return c - Math.easeOutBounce(d - t,0,c,d) + b;
};
Math.easeOutBounce = function(t, b, c, d)
{
var _loc1_ = t;
var _loc2_ = c;
var _loc3_ = b;
if((_loc1_ /= d) < 0.36363636363636365)
{
return _loc2_ * (7.5625 * _loc1_ * _loc1_) + _loc3_;
}
if(_loc1_ < 0.7272727272727273)
{
return _loc2_ * (7.5625 * (_loc1_ -= 0.5454545454545454) * _loc1_ + 0.75) + _loc3_;
}
if(_loc1_ < 0.9090909090909091)
{
return _loc2_ * (7.5625 * (_loc1_ -= 0.8181818181818182) * _loc1_ + 0.9375) + _loc3_;
}
return _loc2_ * (7.5625 * (_loc1_ -= 0.9545454545454546) * _loc1_ + 0.984375) + _loc3_;
};
Math.easeInOutBounce = function(t, b, c, d)
{
var _loc1_ = d;
var _loc2_ = t;
var _loc3_ = c;
if(_loc2_ < _loc1_ / 2)
{
return Math.easeInBounce(_loc2_ * 2,0,_loc3_,_loc1_) * 0.5 + b;
}
return Math.easeOutBounce(_loc2_ * 2 - _loc1_,0,_loc3_,_loc1_) * 0.5 + _loc3_ * 0.5 + b;
};
level1 = [[0,0,0,0,41,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,24,0,24,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,24,0,0,0,24,0,0,0,0,0],[0,0,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0,0,0,8,0,0,0,0,0],[0,0,0,25,0,0,0,0,0,0,8,0,25,0,0,0,0,8,0,0],[0,8,0,0,0,8,0,0,8,0,0,0,0,0,0,25,0,0,0,0],[25,0,0,0,0,0,0,0,0,0,25,0,8,0,0,0,0,0,0,0],[0,0,0,25,0,0,0,0,25,0,0,0,0,0,0,0,0,0,25,0],[0,0,0,0,0,25,0,0,0,0,0,25,0,0,0,25,0,0,0,0],[0,0,0,0,0,0,25,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,46,0,0,0,0,0,0,0,0,0,0]];
Color.prototype.setRGBStr = function(hexStr)
{
var _loc1_ = hexStr;
_loc1_ = _loc1_.substr(-6,6);
this.setRGB(parseInt(_loc1_,16));
};
Color.prototype.getRGBStr = function()
{
var _loc1_ = this.getRGB().toString(16);
var _loc2_ = 6 - _loc1_.length;
while(true)
{
_loc2_;
if(!_loc2_--)
{
break;
}
_loc1_ = "0" + _loc1_;
}
return _loc1_.toUpperCase();
};
Color.prototype.setRGB2 = function(r, g, b)
{
this.setRGB(r << 16 | g << 8 | b);
};
Color.prototype.getRGB2 = function()
{
var _loc1_ = this.getTransform();
return {r:_loc1_.rb,g:_loc1_.gb,b:_loc1_.bb};
};
Color.prototype.reset = function()
{
this.setTransform({ra:100,ga:100,ba:100,rb:0,gb:0,bb:0});
};
MovieClip.prototype.setRGB = function(col)
{
new Color(this).setRGB(col);
};
MovieClip.prototype.getRGB = function()
{
return new Color(this).getRGB();
};
MovieClip.prototype.setRGBStr = function(hexStr)
{
new Color(this).setRGBStr(hexStr);
};
MovieClip.prototype.getRGBStr = function()
{
return new Color(this).getRGBStr();
};
MovieClip.prototype.setRGB2 = function(r, g, b)
{
new Color(this).setRGB2(r,g,b);
};
MovieClip.prototype.getRGB2 = function()
{
return new Color(this).getRGB2();
};
MovieClip.prototype.resetColor = function()
{
new Color(this).reset();
};
MovieClip.prototype.setColorTransform = function(trans)
{
new Color(this).setTransform(trans);
};
MovieClip.prototype.getColorTransform = function()
{
return new Color(this).getTransform();
};
Color.prototype.setBrightness = function(bright)
{
var trans = this.getTransform();
with(trans)
{
ra = ga = ba = 100 - Math.abs(bright);
rb = gb = bb = bright <= 0 ? 0 : bright * 2.56;
}
this.setTransform(trans);
};
Color.prototype.getBrightness = function()
{
var trans = this.getTransform();
with(trans)
{
return !rb ? ra - 100 : 100 - ra;
}
};
MovieClip.prototype.setBrightness = function(bright)
{
new Color(this).setBrightness(bright);
};
MovieClip.prototype.getBrightness = function()
{
return new Color(this).getBrightness();
};
Color.prototype.setBrightOffset = function(offset)
{
var trans = this.getTransform();
with(trans)
{
rb = gb = bb = offset;
}
this.setTransform(trans);
};
Color.prototype.getBrightOffset = function()
{
return this.getTransform().rb;
};
MovieClip.prototype.setBrightOffset = function(offset)
{
new Color(this).setBrightOffset(offset);
};
MovieClip.prototype.getBrightOffset = function()
{
return new Color(this).getBrightOffset();
};
Color.prototype.setContrast = function(percent)
{
trace("setContrast()");
var _loc1_ = {};
_loc1_.ra = _loc1_.ga = _loc1_.ba = percent;
_loc1_.rb = _loc1_.gb = _loc1_.bb = 128 - 1.28 * percent;
this.setTransform(_loc1_);
};
Color.prototype.getContrast = function()
{
return this.getTransform().ra;
};
MovieClip.prototype.setContrast = function(percent)
{
trace("MovieClip.setContrast()");
new Color(this).setContrast(percent);
};
MovieClip.prototype.getContrast = function()
{
return new Color(this).getContrast();
};
Color.prototype.setTint = function(r, g, b, percent)
{
var _loc2_ = percent / 100;
var _loc1_ = {rb:r * _loc2_,gb:g * _loc2_,bb:b * _loc2_};
_loc1_.ra = _loc1_.ga = _loc1_.ba = 100 - percent;
this.setTransform(_loc1_);
};
Color.prototype.getTint = function()
{
var _loc2_ = this.getTransform();
var _loc1_ = {percent:100 - _loc2_.ra};
var _loc3_ = 100 / _loc1_.percent;
_loc1_.r = _loc2_.rb * _loc3_;
_loc1_.g = _loc2_.gb * _loc3_;
_loc1_.b = _loc2_.bb * _loc3_;
return _loc1_;
};
Color.prototype.setTint2 = function(rgb, percent)
{
var _loc3_ = rgb;
var r = _loc3_ >> 16;
var g = _loc3_ >> 8 & 255;
var b = _loc3_ & 255;
var _loc2_ = percent / 100;
var _loc1_ = {rb:r * _loc2_,gb:g * _loc2_,bb:b * _loc2_};
_loc1_.ra = _loc1_.ga = _loc1_.ba = 100 - percent;
this.setTransform(_loc1_);
};
Color.prototype.getTint2 = function()
{
var _loc1_ = this.getTransform();
var _loc2_ = {percent:100 - _loc1_.ra};
var _loc3_ = 100 / _loc2_.percent;
_loc2_.rgb = _loc1_.rb * _loc3_ << 16 | _loc1_.gb * _loc3_ << 8 | _loc1_.bb * _loc3_;
return _loc2_;
};
MovieClip.prototype.setTint = function(r, g, b, percent)
{
new Color(this).setTint(r,g,b,percent);
};
MovieClip.prototype.getTint = function()
{
return new Color(this).getTint();
};
MovieClip.prototype.setTint2 = function(rgb, percent)
{
new Color(this).setTint2(rgb,percent);
};
MovieClip.prototype.getTint2 = function()
{
return new Color(this).getTint2();
};
Color.prototype.setTintOffset = function(r, g, b)
{
var trans = this.getTransform();
with(trans)
{
rb = r;
gb = g;
bb = b;
}
this.setTransform(trans);
};
Color.prototype.getTintOffset = function()
{
var _loc1_ = this.getTransform();
return {r:_loc1_.rb,g:_loc1_.gb,b:_loc1_.bb};
};
MovieClip.prototype.setTintOffset = function(r, g, b)
{
new Color(this).setTintOffset(r,g,b,percent);
};
MovieClip.prototype.getTintOffset = function()
{
return new Color(this).getTintOffset();
};
Color.prototype.invert = function()
{
var trans = this.getTransform();
with(trans)
{
ra = - ra;
ga = - ga;
ba = - ba;
rb = 255 - rb;
gb = 255 - gb;
bb = 255 - bb;
}
this.setTransform(trans);
};
Color.prototype.setNegative = function(percent)
{
var _loc1_ = {};
_loc1_.ra = _loc1_.ga = _loc1_.ba = 100 - 2 * percent;
_loc1_.rb = _loc1_.gb = _loc1_.bb = percent * 2.55;
this.setTransform(_loc1_);
};
Color.prototype.getNegative = function()
{
return this.getTransform().rb * 0.39215686274509803;
};
MovieClip.prototype.invertColor = function()
{
new Color(this).invert();
};
MovieClip.prototype.setNegativeColor = function(percent)
{
new Color(this).setNegative(percent);
};
MovieClip.prototype.getNegativeColor = function()
{
return new Color(this).getNegative();
};
Color.prototype.setRed = function(amount)
{
var _loc1_ = this.getTransform();
this.setRGB(amount << 16 | _loc1_.gb << 8 | _loc1_.bb);
};
Color.prototype.getRed = function()
{
return this.getTransform().rb;
};
Color.prototype.setGreen = function(amount)
{
var _loc1_ = this.getTransform();
this.setRGB(_loc1_.rb << 16 | amount << 8 | _loc1_.bb);
};
Color.prototype.getGreen = function()
{
return this.getTransform().gb;
};
Color.prototype.setBlue = function(amount)
{
var _loc1_ = this.getTransform();
this.setRGB(_loc1_.rb << 16 | _loc1_.gb << 8 | amount);
};
Color.prototype.getBlue = function()
{
return this.getTransform().bb;
};
MovieClip.prototype.setRed = function(percent)
{
new Color(this).setRed(percent);
};
MovieClip.prototype.getRed = function()
{
return new Color(this).getRed();
};
MovieClip.prototype.setGreen = function(percent)
{
new Color(this).setGreen(percent);
};
MovieClip.prototype.getGreen = function()
{
return new Color(this).getGreen();
};
MovieClip.prototype.setBlue = function(percent)
{
new Color(this).setBlue(percent);
};
MovieClip.prototype.getBlue = function()
{
return new Color(this).getBlue();
};
Color.prototype.setRedPercent = function(percent)
{
var _loc1_ = this.getTransform();
_loc1_.ra = percent;
this.setTransform(_loc1_);
};
Color.prototype.getRedPercent = function()
{
return this.getTransform().ra;
};
Color.prototype.setGreenPercent = function(percent)
{
var _loc1_ = this.getTransform();
_loc1_.ga = percent;
this.setTransform(_loc1_);
};
Color.prototype.getGreenPercent = function()
{
return this.getTransform().ga;
};
Color.prototype.setBluePercent = function(percent)
{
var _loc1_ = this.getTransform();
_loc1_.ba = percent;
this.setTransform(_loc1_);
};
Color.prototype.getBluePercent = function()
{
return this.getTransform().ba;
};
MovieClip.prototype.setRedPercent = function(percent)
{
new Color(this).setRedPercent(percent);
};
MovieClip.prototype.getRedPercent = function()
{
return new Color(this).getRedPercent();
};
MovieClip.prototype.setGreenPercent = function(percent)
{
new Color(this).setGreenPercent(percent);
};
MovieClip.prototype.getGreenPercent = function()
{
return new Color(this).getGreenPercent();
};
MovieClip.prototype.setBluePercent = function(percent)
{
new Color(this).setBluePercent(percent);
};
MovieClip.prototype.getBluePercent = function()
{
return new Color(this).getBluePercent();
};
Color.prototype.setRedOffset = function(offset)
{
var _loc1_ = this.getTransform();
_loc1_.rb = offset;
this.setTransform(_loc1_);
};
Color.prototype.getRedOffset = function()
{
return this.getTransform().rb;
};
Color.prototype.setGreenOffset = function(offset)
{
var _loc1_ = this.getTransform();
_loc1_.gb = offset;
this.setTransform(_loc1_);
};
Color.prototype.getGreenOffset = function()
{
return this.getTransform().gb;
};
Color.prototype.setBlueOffset = function(offset)
{
var _loc1_ = this.getTransform();
_loc1_.bb = offset;
this.setTransform(_loc1_);
};
Color.prototype.getBlueOffset = function()
{
return this.getTransform().bb;
};
MovieClip.prototype.setRedOffset = function(offset)
{
new Color(this).setRedOffset(offset);
};
MovieClip.prototype.getRedOffset = function()
{
return new Color(this).getRedOffset();
};
MovieClip.prototype.setGreenOffset = function(offset)
{
new Color(this).setGreenOffset(offset);
};
MovieClip.prototype.getGreenOffset = function()
{
return new Color(this).getGreenOffset();
};
MovieClip.prototype.setBlueOffset = function(offset)
{
new Color(this).setBlueOffset(offset);
};
MovieClip.prototype.getBlueOffset = function()
{
return new Color(this).getBlueOffset();
};
with(MovieClip.prototype)
{
addProperty("_brightness",getBrightness,setBrightness);
addProperty("_brightOffset",getBrightOffset,setBrightOffset);
addProperty("_contrast",getContrast,setContrast);
addProperty("_negativeColor",getNegativeColor,setNegativeColor);
addProperty("_rgb",getRGB,setRGB);
addProperty("_red",getRed,setRed);
addProperty("_green",getGreen,setGreen);
addProperty("_blue",getBlue,setBlue);
addProperty("_redPercent",getRedPercent,setRedPercent);
addProperty("_greenPercent",getGreenPercent,setGreenPercent);
addProperty("_bluePercent",getBluePercent,setBluePercent);
addProperty("_redOffset",getRed,setRedOffset);
addProperty("_greenOffset",getGreen,setGreenOffset);
addProperty("_blueOffset",getBlue,setBlueOffset);
}
ASSetPropFlags(MovieClip.prototype,null,1);
_quality = "low";
p = new Object();
hullDepth = 100;
enemyDepth = 90;
bossDepth = 91;
missileDepth = 80;
explosionDepth = 92;
playerBulletDepth = 95;
HUDDepth = 2000;
powerupDepth = 85;
eBulletDepth = 120;
backgroundDepth = 0;
shadowDepth = 1;
musicDepth = 2;
soundDepth = 10;
attractDistance = 121;
tempVect = new Vector();
tempArray = new Array();
tempBoolean = new Boolean();
baddyType = 0;
enemyCount = 0;
levelNumber = 1;
levelParsing = false;
pickedNumbuh;
initMusicLoops();
music.intro.start(0,999);
initSelectionScreen();